import { axiosMock, delayFn } from '@/services/axiosMock'

axiosMock('default', mock => {
  // 获取路由链路
  mock.onPost(`/tmsapi/track_waybill/waybillLine`).reply(
    delayFn(0, () => {
      return {
        success: true,
        data: [
          {
            logisticsStatusCn: '已发货',
            logisticsStatusEn: 'Handing',
            nodeInfoList: [
              {
                routeType: 1,
                markFlag: 1,
                fileList: [{ fileName: '9.3鞋柜大批量PL清单.pdf', fileUrl: 'http://baidu.com.cn' }],
                occurDate: '2024-10-11',
                publisher: 'Jason',
                descCn: '中文描述',
                descEn: 'English desc',
                routeNodeCn: '国内仓',
                routeNodeEn: 'Consolidation Warehouse',
                titleCn: '中文标题',
                titleEn: 'englishTitle',
                actionFlag: 0,
                visibleFlag: 1,
              },
              {
                routeType: 1,
                markFlag: 1,
                fileList: [{ fileName: '9.3鞋柜大批量PL清单.pdf', fileUrl: 'http://baidu.com.cn' }],
                occurDate: '2024-10-11',
                publisher: 'Jason',
                descCn: '中文描述',
                descEn: 'English desc',
                routeNodeCn: '国内仓',
                routeNodeEn: 'Consolidation Warehouse',
                titleCn: '中文标题',
                titleEn: 'englishTitle',
                actionFlag: 0,
                visibleFlag: 1,
              },
            ],
          },
          {
            logisticsStatusCn: '待发货',
            logisticsStatusEn: 'Handing',
            nodeInfoList: [
              {
                routeType: 1,
                markFlag: 1,
                fileList: [{ fileName: '9.3鞋柜大批量PL清单.pdf', fileUrl: 'http://baidu.com.cn' }],
                occurDate: '2024-10-11',
                publisher: 'Jason',
                descCn: '中文描述',
                descEn: 'English desc',
                routeNodeCn: '国内仓',
                routeNodeEn: 'Consolidation Warehouse',
                titleCn: '中文标题',
                titleEn: 'englishTitle',
                actionFlag: 0,
                visibleFlag: 1,
              },
              {
                routeType: 1,
                markFlag: 1,
                fileList: [{ fileName: '9.3鞋柜大批量PL清单.pdf', fileUrl: 'http://baidu.com.cn' }],
                occurDate: '2024-10-11',
                publisher: 'Jason',
                descCn: '中文描述',
                descEn: 'English desc',
                routeNodeCn: '国内仓',
                routeNodeEn: 'Consolidation Warehouse',
                titleCn: '中文标题',
                titleEn: 'englishTitle',
                actionFlag: 0,
                visibleFlag: 1,
              },
            ],
          },
        ],
      }
    }),
  )
})
